__all__ = ['add', 'multiply', 'Caculats']  # 可以限制白名单，除此之外其他都不让访问
# 计算模块
num = 1000
name = 'caculation'


def add(*args):
    if len(args) > 1:
        sm = 0
        for i in args:
            sm += i
        return sm
    else:
        print("至少传入两个参数")
        return 0


def minus(*args):
    if len(args) > 1:
        m = 0
        for i in args:
            m -= i
        return m
    else:
        print("至少传入两个参数")


def multiply(*args):
    if len(args) > 1:
        sm = 1
        for i in args:
            sm *= i
        return sm
    else:
        print("至少传入两个参数")
        return 0
    pass


def divide(*args):
    if len(args) > 1:
        sm = 1
        for i in args:
            sm += i
        return sm
    else:
        print("至少传入两个参数")
        return 0
    pass


# 类
class Caculats:
    def __init__(self, nm):
        self.__num = nm

    def test(self):
        print("正在计算。。。。。。")

    @classmethod
    def test1(cls):
        print("正在计算---------caculation进行运算")


def test():
    print("我是测试使用的！")


if __name__ == '__main__':
    test()
